package com.hzdl.house_mgr.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

/*@Configuration*/
public class FilterConfig {

    @Bean
    public FilterRegistrationBean registFilter(){
        FilterRegistrationBean bean = new FilterRegistrationBean();
        bean.setFilter(new ChkUserIsLogin());
        bean.addUrlPatterns("/*");
        bean.setOrder(1);

        return bean;
    }
}
